import {createStaticNavigation} from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';

import SplashScreen from './splash/Index';
import MainScreen from './main/Index';
import LocalScreen from './local/Index';


const RootStack = createNativeStackNavigator({
  // initialRouteName: 'Splash',//首先渲染
  screenOptions: {//通用参数
    headerShown: false,//标题栏是否显示
    //headerStyle: { backgroundColor: 'tomato' },//标题栏样式
  },
  screens: {
    // Splash: {
    //   screen: SplashScreen,
    //   options: {//界面参数
    //     title: 'SplashTitle'
    //   }
    // },
    Splash: SplashScreen,
    Main: MainScreen,
    Local: LocalScreen,
  },
});

const Navigation = createStaticNavigation(RootStack);

export default Navigation;
